/**
 * 表单操作类型
 */
export enum TableActionEnum {
    add = '添加',
    remove = '删除',
    edit = '修改'
}

/**
 * 权限表
 */
export enum Perm {
    // 用户权限表
    SysUserAdd = 'sys:user:add',
    SysUserDelete = 'sys:user:delete',
    SysUserEdit = 'sys:user:edit',
    SysUserView = 'sys:user:view',
    SysUserRePassword = 'sys:user:re-password',
    SysUserSetRoles = 'sys:user:set-roles',
    SysUserStatus = 'sys:user:status', // 状态
    SysUserBatchDelete = 'sys:user:batch-delete',
    SysUserBatchSetRoles = 'sys:user:batch-set-roles',
    SysUserBatchRePassword = 'sys:user:batch-re-password',

    // 角色权限表
    SysRoleAdd = 'sys:role:add',
    SysRoleDelete = 'sys:role:delete',
    SysRoleEdit = 'sys:role:edit',
    SysRoleView = 'sys:role:view',
    SysRoleSetMenus = 'sys:role:set-menus',
    SysRoleStatus = 'sys:role:status', // 状态

    // 菜单权限表
    SysMenuAdd = 'sys:menu:add',
    SysMenuDelete = 'sys:menu:delete',
    SysMenuEdit = 'sys:menu:edit',
    SysMenuView = 'sys:menu:view',
    SysMenuStatus = 'sys:menu:status', // 状态

    // 字典权限表
    SysDictAdd = 'sys:dict:add',
    SysDictDelete = 'sys:dict:delete',
    SysDictEdit = 'sys:dict:edit',
    SysDictView = 'sys:dict:view',
    SysDictStatus = 'sys:dict:status', // 状态

    // 子字典权限表
    SysDictSonAdd = 'sys:dict-son:add',
    SysDictSonDelete = 'sys:dict-son:delete',
    SysDictSonEdit = 'sys:dict-son:edit',
    SysDictSonView = 'sys:dict-son:view',
    SysDictSonStatus = 'sys:dict-son:status', // 状态

    // 规则说明表
    SysRuleInfoAdd = 'sys:rule-info:add',
    SysRuleInfoDelete = 'sys:rule-info:delete',
    SysRuleInfoEdit = 'sys:rule-info:edit',
    SysRuleInfoView = 'sys:rule-info:view',
    SysRuleInfoStatus = 'sys:rule-info:status', // 状态

    // dnf weapon
    DnfWeaponAdd = 'dnf:weapon:add',
    DnfWeaponDelete = 'dnf:weapon:delete',
    DnfWeaponEdit = 'dnf:weapon:edit',
    DnfWeaponView = 'dnf:weapon:view',
    DnfWeaponBuy = 'dnf:weapon:buy',

    // dnf shop
    DnfShopAdd = 'dnf:shop:add',
    DnfShopDelete = 'dnf:shop:delete',
    DnfShopEdit = 'dnf:shop:edit',
    DnfShopView = 'dnf:shop:view',
    DnfShopBuy = 'dnf:shop:buy',

    // dnf recharge
    DnfRechargeAdd = 'dnf:recharge:add',
    DnfRechargeDelete = 'dnf:recharge:delete',
    DnfRechargeEdit = 'dnf:recharge:edit',
    DnfRechargeView = 'dnf:recharge:view',
    DnfRechargeBuy = 'dnf:recharge:buy',
}

// 角色枚举
export enum Role {
    Root = 'ROOT',
    Admin = 'ADMIN',
}

// 一些路由的名称列表
export enum RouterName {
    Layout = 'Layout',
    Dashboard = 'Dashboard',
    Sys = 'Sys',
    Login = 'Login',
    Home = 'Home',
    NotFound = 'NotFound',
    Unauthorized = 'Unauthorized',

    QQ = 'QQ',
    QQHome = 'QQHome',
    QQTask = 'QQTask',
    QQBag = 'QQBag',
    QQRecharge = 'QQRecharge',

}

// 表单打开类型
export enum OpenFormType {
    Add,
    Edit,
}
// table展示类型
export enum DisplayTableType {
    Table,
    Card
}

export enum OpenFormWordType {
    Add,
    Edit,
}

// 字典表的内容
export enum DictType {
    Status = 'status',
    Success = 'success',
    Gender = 'gender',
    MenuType = 'menu_type',
    RuleInfoType = 'rule_info_type',
    DnfPriceType = 'dnf_price_type',
    DnfWeaponType = 'dnf_weapon_type',
    DnfItemType = 'dnf_item_type',
    DnfRecordType = 'dnf_record_type'
}